package com.example.cloudreveapp;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SharedViewModel extends ViewModel {
    private final MutableLiveData<String> urlToLoad = new MutableLiveData<>();

    public void setUrlToLoad(String url) {
        urlToLoad.setValue(url);
    }

    public LiveData<String> getUrlToLoad() {
        return urlToLoad;
    }
}